package com.bj.dljd.models.query;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserQuery {
    /**
     * 登录账号
     */
    @NotNull(message = "登录名称不能为空")
    @Size(min = 5,max = 20,message = "登录名称长度在{min}-{max}之间")
    private String loginName;

    /**
     * 登录密码
     */
    @NotNull(message = "请输入登录密码")
    @Size(min = 32,max = 32,message = "登录密码长度不足")
    private String loginPwd;

}
